package cn.wolfcode.shop.cloud.util;


import org.apache.commons.codec.digest.DigestUtils;

public class Md5Util {
    public static String encyMd5(String password, String salt) {
        String pass = "" + salt.charAt(0) + salt.charAt(1) + password + salt.charAt(2) + salt.charAt(3);
        return DigestUtils.md5Hex(pass);
    }

    /*public static void main(String[] args) {
        System.out.println(encyMd5("11111", "1a2d3c4d"));
    }*/
}
